package com.sk.bilibili.view.diy.bottomDialog;

import android.view.View;

import androidx.fragment.app.FragmentManager;

import com.sk.api.annotations.Autowired;
import com.sk.api.tool.BindTool;
import com.sk.bilibili.R;
import com.sk.bilibili.callBack.RequestCallBack;
import com.sk.bilibili.mapper.LookLaterMapper;
import com.sk.bilibili.model.diy.bottomDialog.FollowModel;
import com.sk.bilibili.model.diy.bottomDialog.LaterModel;
import com.sk.bilibili.other.JsonMap;
import com.sk.bilibili.utils.RequestUtils;

public class LaterBottomDialog extends BaseBottomDialog<LaterModel>
        implements View.OnClickListener{

    private Integer videoSetId;

    public void show(FragmentManager fragmentManager, Integer videoSetId) {
        show(fragmentManager);
        this.videoSetId=videoSetId;
    }

    @Override
    public int getLayoutRes() {
        return R.layout.bottom_dialog_later;
    }

    @Override
    protected int[] getClickIds() {
        return new int[]{R.id.tv_later,R.id.tv_cancel};
    }

    @Override
    protected void onClick(int id) {
        if (id == R.id.tv_later) {
            model.addLater(videoSetId);
            toast("添加成功");
        }
        dismiss();
    }

}